Adds an entry using key and value pair and absolute expiration date into the cache, and returns an existing cache entry with a matching key. 


 
            
            
            
            
            
            
            
            public abstract  AddOrGetExisting<>( 
   string ,
    ,
   DateTime ,
   string 
)
             
        
            
            'Declaration
 
Public Overloads MustOverride Function AddOrGetExisting(Of )( _
   ByVal  As String, _
   ByVal  As , _
   ByVal  As Date, _
   ByVal  As String _
) As 
             
        
            
            'Usage
 
Dim instance As ObjectCache
Dim key As String
Dim value As 
Dim absoluteExpiration As Date
Dim regionName As String
Dim value As 
 
value = instance.AddOrGetExisting(Of T)(key, value, absoluteExpiration, regionName)
             
        
            
            
            
        
            
            public abstract<T> T addOrGetExisting(String key, T value, Class<?> classOfT, Date absoluteExpiration, String regionName)
            
             
        
            
            public:
abstract  AddOrGetExistinggeneric<typename >
( 
   String^ ,
    ,
   DateTime ,
   String^ 
) 
             
        
             
        
            Parameters
- key
 
- Unique identifier of the cache item.
 - value
 
- Data for the cache item.
 - absoluteExpiration
 
- Absolute expiration date to use.
 - regionName
 
- Optional name of a region in cache.
 
            Type Parameters
- T
 
            Return Value
The previous cache entry that matches the specified key, if found. If the cache contains an item with the same key, then it will be returned before it is overwritten. Otherwise, null.